package com.xy.controller.mq.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"testTopicFirstQueue"})
public class TopicFirstReceiver {

    @RabbitHandler
    public void process(String testMessage) {
        System.out.println("收到topic:first消息：");
        System.out.println(testMessage);
    }
}
